<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<meta name="decorator" content="cms_default_${site.theme}"/>
		<meta charset="utf-8">
		<title>解决方案</title>
	</head>
	<body>
			<!-- 下面的内容 -->
			<div class="zx-content-body">
				<div class="zx-news-img">
					<img src="${ctxStaticTheme}/img/news.jpg" />
				</div>
				<div class="zx-news-content">
					<form:form id="searchForm" modelAttribute="article" action="${ctx }/solution.html" method="post">
						<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
						<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
					</form:form>
					<ul>
						<c:forEach items="${page.list}" var="item" varStatus="status">
							<li class="zx-news-li">
								<div class="zx-news-li-left">
									<c:if test="${ empty item.image}">
										<img src="${ctxStaticTheme}/img/default-news.png" alt=""/>
									</c:if>
									<c:if test="${!empty item.image}">
										<img src="${fn:replace(item.image,'|','')}" alt="" onerror="this.src='${ctxStaticTheme}/images/default-news.png'"/>
									</c:if>
								</div>
								<div class="zx-news-li-right">
									<p class="zx-news-li-title oneline"><a href="${ctx }/news/detail/${item.id}.html">${item.title }</a></p>
									<p class="zx-news-li-content">${item.description }</p>
									<div class="zx-news-li-time">
										<span><fmt:formatDate value="${item.createDate }" pattern="yyyy年MM月dd日"/></span>
										<span><label>${item.hits }</label>阅读</span>
									</div>
								</div>
							</li>
						</c:forEach>

					</ul>
					<div class="pagination"  style="margin-top: 10px;">${page}</div>
				</div>

				<script>
                    function page(n,s){
                        $("#pageNo").val(n);
                        $("#pageSize").val(s);
                        $("#searchForm").submit();
                        return false;
                    }
				</script>
	</body>

</html>
